﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
    public class HoaDonBLL
    {
        HoaDonDAL q=new HoaDonDAL();
        public IQueryable LayDSHoaDon()
        {

            return q.LayDSHoaDon();
        }
        public IQueryable LayDSHoaDon(int Ma)
        {

            return q.LayDSHoaDon(Ma);
        }
        //public int demBenhNhanMotNgay(DateTime homNay, DateTime a)
        //{

        //    return q;
        //}
        public int thongKeHoaDonTheoNgay(int day, int month,int year)
        {

            return q.thongKeHoaDonTheoNgay(day, month,year);
        }

        public bool ThemHoaDon(HoaDon r)
        {

return q.ThemHoaDon(r);
        }
        public bool suaHoaDon(HoaDon s)
        {

 return q.suaHoaDon(s);
        }
        public bool xoaHoaDon(int MaHoaDon)
        {
 return q.xoaHoaDon(MaHoaDon);
        }
    }
}
